import request from '@/utils/request'

//获取领导信件列表{?content,fromName,id,limit,page,params,sort,status,toPerson}
export function getLetterByLeader(data) {
	return request({
		method: 'get',
		url: '/leadMail/query',
		params: data
	})
}

//修改信件状态/leadMail/update{?content,createTime,fromName,id,orderBy,status,toPerson}
export function updateLetterStatus(data) {
	return request({
		method: 'post',
		url: '/leadMail/update',
		data
	})
}

//删除信箱信件/leadMail/delete/{id}{?id}
export function deteleMailLetter(id) {
	return request({
		method: 'get',
		url: '/leadMail/delete/' + id,
	})
}

//批量删除信件/leadMail/deleteBatch{?ids}
export function batchDeleteLetter(data) {
	return request({
		method: 'post',
		url: '/leadMail/deleteBatch',
		data
	})
}